from django.conf.urls.defaults import *

urlpatterns = patterns('hosts.views',
    url(r'^$','list_hosts',name='list-hosts'),
    url(r'^(?P<host_id>\d+)/$', 'host_detail', name='host-detail'),
    (r'^add$', 'add_host'),
    (r'^(?P<host_id>\d+)/delete$', 'delete_host'),
    (r'^(?P<host_id>\d+)/aliases/$', 'list_host_aliases'),
    (r'^(?P<host_id>\d+)/aliases/add$', 'add_host_alias'),
    url(r'^(?P<host_id>\d+)/aliases/(?P<alias_id>\d+)/delete$', 'delete_host_alias',name='delete-host-alias'),
)